package com.core.image.core.box;

import java.io.ByteArrayOutputStream;

/**
 * describe:
 *
 * @author 库琦
 * @date 2020/01/29
 */
public class ByteReceivePacket extends AbsByteArrayReceivePacket<byte[]> {

    public ByteReceivePacket(long len) {
        super(len);
    }

    @Override
    public byte[] buildEntity(ByteArrayOutputStream stream) {
        return stream.toByteArray();
    }
    @Override
    public byte type() {
        return TYPE_MEMORY_BYTES;
    }
}
